Fixed gdk_window_beep() to pass the toplevel instance to the toplevel's implementatio...
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 10 Mar 2011 05:08:15 +0000 (14:08 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 10 Mar 2011 05:10:32 +0000 (14:10 +0900)
This incorrect assignment would cause asynchronous aborts from the X server
(they would occur if for instance, an offscreen GtkTreeView calls
gtk_widget_error_bell()).

gdk/gdkwindow.c

index 57a31872457dfe2fa22324e7f2a4c403944874f6..e3177f01fb674cc757125d5f4bf1e74471b8daee 100644 (file)
@@ -7968,7 +7968,7 @@ gdk_window_beep (GdkWindow *window)
 
   if (toplevel)
     {
-      if (GDK_WINDOW_IMPL_GET_CLASS (toplevel->impl)->beep (window))
+      if (GDK_WINDOW_IMPL_GET_CLASS (toplevel->impl)->beep (toplevel))
         return;
     }